﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TableChangeModel.aspx.cs"
    Inherits="Whir_System_Module_CommonModel_TableChangeModel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DADADA">
            <tr>
                <td height="30" align="center" class="form_tdText" width="100px">ModelMark</td>
                <td class="form_td">
                    <asp:TextBox ID="txtModelMark" runat="server">News_v0.0.01</asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtModelMark"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">ModelName</td>
                <td class="form_td">
                    <asp:TextBox ID="txtModelName" runat="server">新闻发布系统</asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtModelName"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">ModelDesc</td>
                <td class="form_td">
                    <asp:TextBox ID="txtModelDesc" runat="server">新闻发布系统</asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtModelDesc"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">ModelIcon</td>
                <td class="form_td">
                    <asp:TextBox ID="txtModelIcon" runat="server">Announce.gif</asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtModelIcon"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">IsUse</td>
                <td class="form_td">
                    <asp:TextBox ID="txtIsUse" runat="server">True</asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtIsUse"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
        </table>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DADADA">
                    <tr>
                        <td height="30" align="center" class="form_tdText" width="100px">表</td>
                        <td class="form_td">
                            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
                <asp:GridView ID="GridView1" runat="server" Width="99%" BackColor="#CBCBCB" AutoGenerateColumns="False">
                    <HeaderStyle CssClass="grid_Title" Height="20px" />
                    <RowStyle CssClass="grid_td" Height="23px" />
                    <Columns>
                        <asp:BoundField DataField="表名" HeaderText="表名" />
                        <asp:BoundField DataField="表说明" HeaderText="表说明" />
                        <asp:BoundField DataField="字段序号" HeaderText="字段序号" />
                        <asp:BoundField DataField="字段名" HeaderText="字段名" />
                        <asp:BoundField DataField="标识" HeaderText="标识" />
                        <asp:BoundField DataField="主键" HeaderText="主键" />
                        <asp:BoundField DataField="类型" HeaderText="类型" />
                        <asp:BoundField DataField="占用字节数" HeaderText="占用字节数" />
                        <asp:BoundField DataField="长度" HeaderText="长度" />
                        <asp:BoundField DataField="小数位数" HeaderText="小数位数" />
                        <asp:BoundField DataField="允许空" HeaderText="允许空" />
                        <asp:BoundField DataField="默认值" HeaderText="默认值" />
                        <asp:BoundField DataField="字段说明" HeaderText="字段说明" />
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:Button ID="Button1" runat="server" Text="将表转换成功能模块" OnClick="Button1_Click" />
        <h2>
            字段说明</h2>
        <pre> 
【None】: 传参
【BoolType】:是/否
【ColorType】:颜色代码
【DateTimeType】:日期和时间
【FileType】:文件
【LinkType】:超链接
【ListBoxType】:选项
【MoneyType】:货币
【MultipleHtmlTextType】:多行文本（支持HTML）
【MultipleTextType】:多行文本（不支持HTML）
【NumberType】:数字
【PictureType】:图片
【TextType】:单行文本</pre>
    </form>
</body>
</html>
